package com.hanamaki.oop.demo11;

public class Application {
    public static void main(String[] args) {

//        JiaoCar jiaoCar = new JiaoCar("别克商务舱GL8");
//        double price = jiaoCar.price(3);
//        System.out.println(jiaoCar.carType + "的租赁价为：" + price);

        KeCar keCar = new KeCar(17);
        double price = keCar.price(5);
        System.out.println(keCar.a + "座的租赁价为:" + price);
    }
}
